package com.integralPerformance.controller;

import com.integralPerformance.common.Result;
import com.integralPerformance.service.impl.ApplicationRecodesServiceImpl;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/s2/count")
@Tag(name = "！新：岗位聘任考核统计", description = "！新：岗位聘任考核统计")
public class CountStatusController {

    @Autowired
    ApplicationRecodesServiceImpl applicationRecodesService;

    @Operation(summary = "管理员：岗位聘任统计", description = "管理员：岗位聘任统计")
    @PostMapping("/count")
    public Result<?> count() {
        return applicationRecodesService.countStatus();
    }
}
